package com.bottle.web;

import com.bottle.client.CharClient;
import com.bottle.mode.RequestMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: chenyuncong
 * @Date: 2020/5/9 17:40
 */
@RestController
public class ClientController {
    @Autowired
    private CharClient charClient;

    @GetMapping("send")
    public String send(String info){
        RequestMessage requestMessage=new RequestMessage();
        requestMessage.setContent(info);
        requestMessage.setEncrBridgeId("5ec8d9dba85e20b3");
        requestMessage.setEncrUserId("b003e8895fc08316");
        return charClient.send(requestMessage);
    }
}
